-- GENERATED SPELL FOR [Defias Captive] --


function spell0_1707(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1707', 587, 1)
end

function spell1_1707(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1707', 30278, 1)
end

function Sorts_1707(pUnit, Event)
local choix_sorts_1707 = math.random(0, 1)
if choix_sorts_1707 == 0 then
pUnit:RegisterEvent('spell0_1707', 1, 1)
end
if choix_sorts_1707 == 1 then
pUnit:RegisterEvent('spell1_1707', 1, 1)
end
end

function mob1707_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1707', math.random(1500, 3000), 1)
end

function mob1707_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1707_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1707_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1707, 1, 'mob1707_Action')
RegisterUnitEvent(1707, 2, 'mob1707_Leave')
RegisterUnitEvent(1707, 3, 'mob1707_Kill')
RegisterUnitEvent(1707, 4, 'mob1707_Die')
